#import <UIKit/UIKit.h>

typedef enum{
	LoadMorePulling = 0,
	LoadMoreNormal,
	LoadMoreLoading,	
} LoadMoreState;

@protocol LoadMoreTableFooterDelegate;

@interface LoadMoreTableFooterView : UIView {
	__unsafe_unretained id _delegate;
	LoadMoreState _state;
	
	UILabel *_statusLabel;
	UIActivityIndicatorView *_activityView;
    
    NSString *textPullUpToLoad; // 上拉载入更多
    NSString *textLoading; // 刷新中
    NSString *textReleaseToLoad; // 放手刷新
}

@property (nonatomic, retain) NSString *textPullUpToLoad;
@property (nonatomic, retain) NSString *textLoading;
@property (nonatomic, retain) NSString *textReleaseToLoad;

@property(nonatomic,assign) id <LoadMoreTableFooterDelegate> delegate;

- (void)loadMoreScrollViewDidScroll:(UIScrollView *)scrollView;
- (void)loadMoreScrollViewDidEndDragging:(UIScrollView *)scrollView;
- (void)loadMoreScrollViewDataSourceDidFinishedLoading:(UIScrollView *)scrollView;

@end

@protocol LoadMoreTableFooterDelegate
- (void)loadMoreTableFooterDidTriggerRefresh:(LoadMoreTableFooterView *)view;
- (BOOL)loadMoreTableFooterDataSourceIsLoading:(LoadMoreTableFooterView *)view;
@end